<?php

namespace app\models;

use Yii;
use yii\base\Model;

/**
 * ContactForm is the model behind the contact form.
 */
class CongzhialipayForm extends Model
{
    public $alipay_user;
    public $money;
    public $member_real_name;

    /**
     * @return array the validation rules.
     */
    public function rules()
    {
        return [
            [['alipay_user', 'money','member_real_name'], 'required'],
            [['alipay_user','member_real_name'],'string','min'=>1,'max'=>30],
            [['money'],'number','min'=>1,'max'=>10000],
        ];
    }

    /**
     * @return array customized attribute labels
     */
     public function attributeLabels()
     {
         return [
             'alipay_user' => '支付宝用户名',
             'member_real_name' => '会员真实姓名',
             'money' => '充值金额',
         ];
     }

}
